package com.zyz.F_异常.自定义异常;

/**
 * @author: vick
 * @Date: 2025/3/18
 * @Description:
 * @version: 1.0
 */
public class MyNumber2 {

    public void aa(int num) {
        if (num > 0) {
            System.out.println(num);
        }else {
            throw new MyException2("请输入一个正常的数据");
        }
    }
}
